<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use components\widgets\Alert;
$this->title = 'DuoSuTe Cms 后台管理系统';
$this->params['breadcrumbs'][] = $this->title;
?>


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?= Html::encode($this->title) ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
    <meta name="author" content="Muhammad Usman">
    <!-- The styles -->
    <link id="bs-css" href="css/bootstrap-cerulean.min.css" rel="stylesheet">

    <link href="css/charisma-app.css" rel="stylesheet">

    <!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- The fav icon -->
    <link rel="shortcut icon" href="img/favicon.ico">

</head>

<body>
<div class="ch-container">
    <div class="row">

        <div class="row">
            <div class="col-md-12 center login-header">
                <h2><?= Html::encode($this->title) ?></h2>
            </div>
            <!--/span-->
        </div><!--/row-->

        <div class="row">
            <div class="well col-md-5 center login-box">
                <div class="alert alert-info">
                    Please login with your Username and Password.
                </div>
                    <fieldset>
                        <?php $form = ActiveForm::begin([
                            'id' => 'login-form',
                            'fieldConfig'=>[
                                'options' => ['tag' => 'tr','class' => 'form-control'],
                                'template' => '<div class="input-group input-group-lg"><span class="input-group-addon"><i class="glyphicon glyphicon-lock red"></i></span>{input}</div><div class="clearfix"><br>',

                            ]
                        ]);?>
                        <?= $form->field($model, 'username') ?>
                        <?= $form->field($model, 'password')->passwordInput() ?>

                        <div class="input-prepend">
<!--                            <label class="remember" for="remember"><input type="checkbox" id="remember" name="LoginForm[rememberMe]"> Remember me</label>-->
                        </div>
                        <div class="clearfix"></div>

                        <p class="center col-md-5">
                            <?= Html::submitButton('Login', ['class' => 'btn btn-primary'] ) ?>
                        </p>
                        <?php ActiveForm::end(); ?>
                    </fieldset>

            </div>
            <!--/span-->
        </div><!--/row-->
    </div><!--/fluid-row-->

</div><!--/.fluid-container-->

<!-- external javascript -->
<script type="text/javascript">
    if (top.location != self.location){
        top.location=self.location;
    }
</script>



</body>
</html>
